//
//  NSObject+CommonUtils.m
//  bgms_p
//
//  Created by xiao.zhao@lachesis-mh.com on 16/2/24.
//  Copyright © 2016年 xiao.zhao@lachesis-mh.com. All rights reserved.
//

#import "NSObject+CommonUtils.h"

@implementation NSObject (CommonUtils)

-(void)saveObject:(id)obj forKey:(NSString *)key
{
    NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];
    [userDefaults setObject:obj forKey:key];
    [userDefaults synchronize];
}

-(id)getObjectForKey:(NSString *)key
{
    NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];
    
    return [userDefaults objectForKey:key];
}

@end
